home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5343 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: news.central.ntua.gr!not-for-mail
  2. From: hnick@central.ntua.gr (Nick C. Fotis)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Fastest datatype?
  5. Date: 13 Mar 1996 03:33:39 GMT
  6. Organization: National Technical University of Athens, Greece
  7. Message-ID: <4i5fmj$t04@zeus.central.ntua.gr>
  8. References: <83.6643T702T1298@academy.bastad.se>
  9. NNTP-Posting-Host: gate2-zeus.central.ntua.gr
  10. X-Newsreader: NN version 6.5.0 #1 (NOV)
  11.  
  12. sten@academy.bastad.se (Sten Jansson) writes:
  13.  
  14. >I've heard that float is faster than integer. Is that true? I've got
  15. >no FPU.
  16.  
  17. Is this the most misleading subject or is it just me? :-)
  18. I thought I was about to read about some fancy jpg, gif datatype ;-)
  19.  
  20. Anyways, since you got me here, I might as well give you an answer (Nice trick,
  21. dont do it again :P)
  22.  
  23. On machines with not FPU integers are faster than float.  On machines with FPU
  24. float comes close, but I think integers are still faster.               
  25.  
  26. BUT, when you deal with programs that just must do their computations in float
  27. (such as ray-tracers, fractals) then FPU's float arithmetic is faster than
  28. "CPU's simulated float arithmetic" (Which is basically the thing I think you
  29. wanted to ask).
  30.  
  31.  
  32. >Sten
  33.  
  34. ..."Faster datatype"!  Yeah, right :-)
  35. Cheers,
  36. Alex
  37.  
  38.  
  39. --
  40.  
  41. +----------------------------------------------------------------------------+
  42. | Alkinoos Alexandros Argiropoulos                  A1200, '030@40, 6MB Fast |
  43. | Athens, Greece                       "AAA is not a chipset...It's my name" |
  44. +----------------------------------------------------------------------------+
  45.